<?PHP
include 'm/constants.php';
global $auth_session;
include 'u/user_password_reset.php';
if($auth_session->logged_in)
{
	header("Location: ".$conf->admin_url);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Login</title>
	<meta name="generator" content="TextMate http://macromates.com/">
	<meta name="author" content="Peewee">
	
	<link rel="stylesheet" href="c/master.css" type="text/css" media="screen" title="no title" charset="utf-8">

	<script src="j/3/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
	<script src="j/3/jquery/jquery.validate.pack.js" type="text/javascript" charset="utf-8"></script>
	
	<!-- Date: 2009-07-27 -->
</head>
<body>
	<div class="formlogin">
		<div class="datatop"> Welcome </div>
		<div class="datalabel"></div>
			<div class="datadata">
				<form action="login.php" method="post" accept-charset="utf-8" id='data_form' class='login_form'>
					<div class="forminfoholder">
						<label for="username">Username</label><input type="text" name="user_name" value="" id="username" class="required bigform">
					</div>
					<div class="forminfoholder">
						<label for="password">Password</label><input type="password" name="user_password" value="" id="password" class="required password bigform">
					</div>
						<input type="hidden" name="login" value="a" id="some_name">
					<?PHP	printsubmit("Login"); ?>
	
	
				</form>


				<form action="user_messages.php?a=changepass" method="post" accept-charset="utf-8" class='login_form' id='retrieve_form'>
					<div class="forminfoholder">
						<label for="email">Email</label><input type="text" name="user_email" value="" id="email" class="required email bigform">
						
					</div>
					<input type="hidden" name="login" value="a" id="some_name">

					<?PHP printsubmit("Retrieve"); ?>
				</form>
		</div>
		<div class="datafootbg">
			 <a href="#" class='login_form' id='forget_pass'>Forgot your password?</a>
			<a href="#" class='login_form' id='login_form'>Login</a>
		
		</div>
	</div>
	<script type="text/javascript" charset="utf-8">
		$("#data_form").validate();
		$("#retrieve_form").validate();
		$("#forget_pass").click(function() {   $(".login_form").toggle();   });
		$("#login_form").click(function() {   $(".login_form").toggle();   });
	</script>
</body>
</html>
